package com.tank.demo.abstractFactory;


import com.tank.demo.entry.bullet.RetroBullet;
import com.tank.demo.entry.explode.RetroExplode;
import com.tank.demo.entry.tank.RetroTank;
import com.tank.demo.entry.wall.RetroWall;
import com.tank.demo.myenum.DirEnum;
import com.tank.demo.myenum.TankGroupEnum;

public class RetroStyleGameFactory extends BaseGameAbstractFactory {

    @Override
    public BaseTank createTank(int x, int y, DirEnum dir, boolean moving, TankGroupEnum group) {
        return new RetroTank(x, y, dir, moving, group);
    }

    @Override
    public BaseBullet createBullet(int x, int y, DirEnum dir, TankGroupEnum group) {
        return new RetroBullet(x, y, dir, group);
    }

    @Override
    public BaseExplode createExplode(int x, int y) {
        return new RetroExplode(x, y);
    }

    @Override
    public RetroWall createWall(int x, int y) {
        return new RetroWall(x, y);
    }
}
